package com.gae.blore.server;

import java.util.List;

import com.gae.blore.client.PoliceStationService;
import com.gae.blore.client.domain.PoliceStation;
import com.gae.blore.server.dao.IPoliceStationServiceDao;
import com.gae.blore.server.dao.PoliceStationServiceDao;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class PoliceStationServiceImpl extends RemoteServiceServlet implements
		PoliceStationService {
	/**
	 * 
	 */
	private static final long serialVersionUID = -4524236972020372122L;
	private IPoliceStationServiceDao policeStationServiceDao = new PoliceStationServiceDao();

	@Override
	public List<PoliceStation> getAllPoliceStation() {
		return policeStationServiceDao.getPoliceStations();
	}

	@Override
	public PoliceStation getPoliceStation(Long id) {
		return policeStationServiceDao.getPoliceStation(id);
	}

}
